/* 
 * File:   GTestHelper.cpp
 * Author: dolphinigle
 * 
 * Created on March 11, 2011, 3:03 PM
 */

#include "gtesthelper.hpp"
#include "gtest/gtest.h"

// pass googletest if lower_bound <= number <= upperbound
void GTestHelper::expectStrictlyBetween(int number, int lower_bound, int upper_bound) {
  EXPECT_LE(lower_bound, number);
  EXPECT_LE(number, upper_bound);
}

//pass googletest if 0 <= number <= upperbound
void GTestHelper::expectPositiveLowerThan(int number, int upper_bound) {
  GTestHelper::expectStrictlyBetween(number, 0, upper_bound-1);
}
